<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>定位的介绍</title>
    <link rel="stylesheet" type="text/css" href="../css/reset.css">
    <style type="text/css">
        body{
            border: 1px solid orange;
        }
        div{
            width: 200px;
            height: 200px;
            color: #fff;
        }
        div.one{
            /* position: static; */
            background-color: red;
            position: relative;
            top: 20px;
            left:100px
        }
        div.two{
            background-color: green;
            position: relative;
            top: 50px;
            left: 100px;
        }
        div.three{
            background-color: blue;
        }
    </style>
</head>
<body>
    <!-- 
        相对定位:
            1.不脱离标准文档流 可以调整元素
            2.参考点以原来的位置
    -->
    <div class="one">one</div>
    <div class="two">two</div>
    <div class="three">three</div>
</body>
</html>